<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"
    errorPage=""%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>新增設備分類資料</title>
<script language="JavaScript">
  function formCheck()
  {
     if(document.form1.name.value == ""){
	      alert("請填寫設備分類名稱");
		  document.form1.name.focus()
		  return false;
	 }
  }
</script>
</head>
<body>
<% if(session.getAttribute("access") == "y" ){%>
<table width="750" border="0" align="center">
  <tr>
    <td width="30" rowspan="4"><jsp:include page="../frameset/left.jsp" flush="true" ></jsp:include></td>
    <td colspan="2"><jsp:include page="../frameset/top.jsp" flush="true" ></jsp:include></td>
    <td width="40" rowspan="4"><jsp:include page="../frameset/right.jsp" flush="true" ></jsp:include></td>
  </tr>
  <tr>
    <td rowspan="2"><jsp:include page="../frameset/mean.jsp" flush="true" ></jsp:include>

    </td>
    <td height="32"><jsp:include page="../frameset/pfm_mean.jsp" flush="true" ></jsp:include></td>
  </tr>
  <tr>
    <td>
    <table width="400" border="0" align="center" >
  <tr>
    <td><form id="form1" name="form1" method="post" action="do_addFClass.jsp">
      <table width="100%" border="0" height="200" align="center">
        <tr>
          <td width="40%">請輸入設備分類名稱</td>
          <td width="40%"><input type="text" name="name" maxlength="36"/></td>
          <td width="20%"><input type="submit" name="Submit" onClick="return formCheck()" value="新增" /></td>
        </tr>
      </table>
        </form>
    </td>
  </tr>
</table>
    </td>
  </tr>
  <tr>
    <td colspan="2"></td>
  </tr>
</table>
<%
  }
  else{
  	response.sendRedirect("../index.jsp"); //若沒有登入則回到index.jsp
  } 
  %>
    
</body>
</html>